<div align="center" style="padding:20px;">
   {%foreach from=$langs item='l' name='i'%}
      {%if $l.id eq $lang.id%}
      <font style="font-weight:bold;color:#F00;">{%$l.title%}</font>
      {%else%}
      <a href="{%$l.href%}">{%$l.title%}</a>
      {%/if%}
      {%if !$smarty.foreach.i.last%} &nbsp; | &nbsp; {%/if%}
   {%/foreach%}


   {%assign var='first' value=true%}
   {%foreach from=$categories item='menu' name='i'%}
   {%if in_array('topmenu', (array)$menu->types)%}
   {%if $first%}<ul class="navigation">{%assign var='first' value=false%}{%/if%}
   <li><a href="{%$menu->href%}">{%$menu->title%}</a> &nbsp; </li>
   {%/if%}
   {%/foreach%}
   {%if !$first%}</ul>{%/if%}
</div>